import React from 'react'

import './style'
import ContainerModle from '../../common/containerModle'
import ContainerViewExtend from './containerViewExtend'
import ContainerViewProxy from './containerViewProxy'
import SettingProxy from './settingProxy'

export default class CustomPage extends React.Component{

    static defaultProps = {
        javaInterface:{
            find: '/api/portalTsLogin/element/getCommonAbstractImplData',
            save: '/api/portalTs/commonAbstractImpl/save',
            update: '/api/portalTs/commonAbstractImpl/update',
            saveOrUpdateItem: '/api/portalTs/commonAbstractImpl/saveOrUpdateItem',
            deleteItem: '/api/portalTs/commonAbstractImpl/deleteItem',
            orderItem: '/api/portalTs/commonAbstractImpl/orderItem',
        }
    }

    onSaveBeforeHandler = (setting={})=>{
        setting.title =  '视频元素'

    }

    onLoadAfterHandler = (data)=>{

    }

    render(){

        return (
            <ContainerModle ecId={`${this && this.props && this.props.ecId || ''}_ContainerModle@238eu9`} {...this.props} ContainerViewProxy={ContainerViewProxy} SettingProxy={SettingProxy} onSaveBeforeHandler={this.onSaveBeforeHandler} onLoadAfterHandler={this.onLoadAfterHandler} ContainerViewExtend={ContainerViewExtend}>
            </ContainerModle>
        )
    }
}